import { tologin } from '@/src/utils/login'
import '@/styles/globals.css'
import type { AppProps } from 'next/app'
import React from 'react'
import {Provider} from "react-redux"
import store from '@/store/store'
export default function App({ Component, pageProps }: AppProps) {
  //页面初始化时，检测有无用户信息
  React.useEffect(()=>{
    let str = localStorage.getItem("token")
    if(str){
      
    }else{
      tologin()
    }
  },[])
    
  return (
  <Provider store={store}>
  <Component {...pageProps} />
  </Provider>
  )
}
